package com.ztgf.commodity.models.dto;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztgf.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-05-25 11:09
 * Description:
 */
@Data
@TableName("commodity_category")
@ApiModel(value = "商品分类对象", description = "商品分类对象")
public class CommodityCategoryDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "首字母缩写")
    private String initials;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否发布;0未发布，1发布")
    private Integer isPublish;

    @ApiModelProperty(value = "状态;0正常、1删除")
    private Integer status;

    @ApiModelProperty(value = "分成比例")
    private BigDecimal dividendScale;

    @ApiModelProperty(value = "即将生效分成比例")
    private BigDecimal futureDividendScale;

    @ApiModelProperty(value = "唯一标识")
    private String code;

    @ApiModelProperty(value = "分成比例生效时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveTime;

    @ApiModelProperty(value = "定时任务生效状态 0未启动，1启动中 默认0")
    private Integer effectiveStatus;

    @ApiModelProperty(value = "京东类目标识")
    private Integer jdFlag;

    @ApiModelProperty(value = "京东类目编码")
    private String jdCode;



}
